﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_ViewInvite : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CmsDataContext db = new CmsDataContext();

            try
            {
                string iid = Request.Params["iid"];
                Invite inv = (from aI in db.Invite
                              where aI.ID == iid
                              select aI).First();

                Belong.Text = string.Format("{0}（{1}）", inv.Manager.Name, inv.Manager.Belong);
                InviteTitle.Text = inv.Title;
                Memo.Text = inv.Memo;
                Course.Text = string.Format("{0} - {1} - {2}", inv.Kind, inv.Subject, inv.Course);
            }
            catch (Exception ee)
            {
            }
        }
    }
}